package com.gxy.learn.design.model.behaviour.observer;

import lombok.extern.slf4j.Slf4j;

/**
 * @description: 具体观察者校色
 * @author: gaoxueyong
 * @Date: 2022/11/8 18:05
 */
@Slf4j
public class WeixinUser implements Observer{
    private String name;

    public WeixinUser(String name) {
        this.name = name;
    }

    /**
     * 公众号更新接口
     *
     * @param message
     * @return void
     * @Author gaoxueyong
     * @Date 6:02 下午 2022/11/8
     * @Param [message]
     */
    @Override
    public void update(String message) {
        log.info("{}收到公众号消息：{}",this.name,message);
    }
}
